bl_info = {
    "name" : "Akari Tool Bag",
    "author" : "Akari",
    "description" : "",
    "blender" : (3, 5, 0),
    "version" : (0, 0, 6),
    "location" : "",
    "warning" : "部分功能处于测试阶段",
    "category" : ""
}
import bpy
from bpy.props import PointerProperty

from . import ATBPreferences, ATBOperator, ATBProps, ATBFunctions
from . ATBProps import ATB_PropGroup

def register():
    ATBPreferences.register()
    ATBOperator.register()
    ATBProps.register()
    bpy.types.Scene.atbprops = PointerProperty(type=ATB_PropGroup)
    bpy.types.WindowManager.quick_physics = PointerProperty(type=ATB_PropGroup)
    bpy.types.STATUSBAR_HT_header.append(ATBFunctions.translationui)
    bpy.types.DOPESHEET_HT_header.append(ATBFunctions.setframe)

def unregister():
    ATBPreferences.unregister()
    ATBOperator.unregister()
    ATBProps.unregister() 
    del bpy.types.Scene.atbprops
    del bpy.types.WindowManager.quick_physics
    bpy.types.STATUSBAR_HT_header.remove(ATBFunctions.translationui)
    bpy.types.DOPESHEET_HT_header.remove(ATBFunctions.setframe)

if __name__ == "__main__":
    register()
